﻿@model TCM.Room

@{
    ViewBag.Title = "Create";   
}

<h2>New Room</h2>


@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Room</legend>       
        <ol>        
        <li class="editor-label">
            @Html.LabelFor(model => model.Name)
       
            @Html.EditorFor(model => model.Name)
            @Html.ValidationMessageFor(model => model.Name)
        </li>

       
            <li class="editor-label">            
            @Html.LabelFor(model => model.Code)
        
            @Html.EditorFor(model => model.Code)
            @Html.ValidationMessageFor(model => model.Code)
        </li>

       @* <li class="editor-label">
            @Html.LabelFor(model => model.Description)
     
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </li>*@

        <li class="editor-label">
            @Html.LabelFor(model => model.Capacity)
       
            @Html.EditorFor(model => model.Capacity)                       
            @Html.ValidationMessageFor(model => model.Capacity)
        </li>

        <li class="editor-label OneColumn">
            @Html.LabelFor(model => model.Notes)
      
            @Html.TextAreaFor(model => model.Notes)
            @Html.ValidationMessageFor(model => model.Notes)
        </li>        

          
 </ol>
        <p>
            <input type="submit" value="Create" id="btnSave" />
        </p>
       
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
